/**
 * Created by Administrator on 2017/11/21.
 */
import {stringify} from 'qs';
import {requeste} from '../utils/request';

/**
 * 获取用户菜单
 */
export async function queryAdminMenu(params) {
    return requeste('adminMenuService', 'queryAdminMenu', {
        method: 'POST',
        body: params,
    });
}
/**
 *查询所有管理员对应的信息
 */
export async function queryAdminList(params) {
    return requeste('queryAdminService', 'queryAdminList', {
        method: 'POST',
        body: params,
    });
}
/**
 *删除对应管理员
 */
export async function deleteAdmin(params) {
    return requeste('queryAdminService', 'deleteAdmin', {
        method: 'POST',
        body: params,
    });
}
/**
 *更新对应管理员信息
 */
export async function updateAdmin(params) {
    return requeste('queryAdminService', 'updateAdmin', {
        method: 'POST',
        body: params,
    });
}
/**
 *添加管理员
 */
export async function saveAdmin(params) {
    return requeste('queryAdminService', 'saveAdmin', {
        method: 'POST',
        body: params,
    });
}

/**
 *插入系统参数
 */
export async function insertSystemConfig(params) {
    return requeste('insertSystemConfig', 'insertSystemParamConfig', {
        method: 'POST',
        body: params,
    })
}
/**
 *查询系统参数
 */
export async function querySystemConfig(params) {
    return requeste('querySystemConfig', 'querySystemParamConfig', {
        method: 'POST',
        body: params,
    })
}
/**
 *更新系统参数
 */
export async function updateSystemConfig(params) {
    return requeste('updateSystemConfig', 'updateSystemParamConfig', {
        method: 'POST',
        body: params,
    })
}
/**
 *查询所有的商家
 */
export async function queryAllSeller(params) {
    return requeste('ShopManage', 'queryAllSeller', {
        method: 'POST',
        body: params,
    })
}
/**
 *修改商家信息
 */
export async function updateSeller(params) {
    return requeste('ShopManage', 'updateSeller', {
        method: 'POST',
        body: params,
    })
}
/**
 *查询店铺所拥有的货物
 */
export async function queryShopGoodById(params) {
    return requeste('ShopManage', 'queryShopGoodById', {
        method: 'POST',
        body: params,
    })
}
/**
 *插入对应商家的货物
 */
export async function insertShopGoods(params) {
    return requeste('ShopManage', 'insertShopGoods', {
        method: 'POST',
        body: params,
    })
}
/**
 *删除对应商家的货物
 */
export async function deleteShopGoods(params) {
    return requeste('ShopManage', 'deleteShopGoods', {
        method: 'POST',
        body: params,
    })
}
/**
 *查询所有货物
 */
export async function queryAllGoods(params) {
    return requeste('ShopManage', 'queryAllGoods', {
        method: 'POST',
        body: params,
    })
}
